package com.xiaoh.dormitoryrepairreportbackend.model.dto.workorder;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import jakarta.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * 工单更新请求
 */
@Data
@Schema(description = "工单更新请求")
public class WorkOrderUpdateRequest implements Serializable {

    @Schema(description = "工单ID", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "工单ID不能为空")
    private Long id;

    @Schema(description = "报修类别ID")
    private Integer categoryId;

    @Schema(description = "工单标题")
    private String title;

    @Schema(description = "问题描述")
    private String description;

    @Schema(description = "报修地址")
    private String location;

    @Schema(description = "图片凭证URL列表")
    private List<String> imagesUrl;

    @Schema(description = "工单状态(1:待处理, 2:处理中, 3:已完成, 4:已评价, 0:已取消)")
    private Integer status;

    private static final long serialVersionUID = 1L;
}
